import request from '@/utils/request'

export function showHotSearchList(query) {
  return request({
    url: '/rules/search/show',
    method: 'get',
    params: query
  })
}

export function saveHotSearch(data) {
  return request({
    url: '/rules/search/save',
    method: 'post',
    data
  })
}

export function deleteHotSearch(searchId) {
  return request({
    url: '/rules/search/remove',
    method: 'get',
    params: { 'searchId': searchId }
  })
}
